
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <div id="root"></div>
    
</body>
<script>


    const app = Vue.createApp({
        components: {
        },
        data(){
            return {
                content:'this is a content'
            }
        },
        methods:{
            
        },
        template:
        `
            <div>
                <test msg="content" class="tet"/>
            </div>
        `
    });

    app.component('test', {
        inheritAttrs:false,
        props: [],
        methods: {
           
        },
        mounted() {
          console.log(this.$attrs)  
          console.log(this.$attrs.msg)  
        },
        template: 
        `
            <div :msg="$attrs.msg">Counter01</div>
            <div v-bind="$attrs">Counter02</div>
            <div :msg1="$attrs.class">Counter03</div>
        `
    });

    const vm = app.mount("#root");
</script>
</html>